Skip to content

Conversation

@mtullsen
Copy link
Contributor

@mtullsen mtullsen commented Sep 10, 2025

See Also

Notes re the implementation

  • The goal here is to common up (as much possible) the code from the currently working import implementation into the code for cryptol_load (and cryptol_extract).
  • A lot of the changes are refactorings to allow for the above "commoning up" (some of which were non-trivial, relying on arguments beyond syntactic rewriting).
  • During testing, a bug was discovered in import & load
    • privates in submodules were being silently ignored.
    • this was fixed, a large rewrite involved, see the code in CryptolSAWCore.CryptolEnv.computeNamingEnv

@mtullsen mtullsen self-assigned this Sep 10, 2025
@mtullsen mtullsen force-pushed the tullsen/support-submodules-in-cryptol_load branch 4 times, most recently from 52b831f to 729af4c Compare September 19, 2025 21:25
@mtullsen mtullsen force-pushed the tullsen/support-submodules-in-cryptol_load branch 2 times, most recently from d80957b to 93fd2d8 Compare September 30, 2025 05:16
@mtullsen mtullsen force-pushed the tullsen/support-submodules-in-cryptol_load branch from 0ff5951 to a89ed12 Compare October 11, 2025 23:46
@mtullsen mtullsen marked this pull request as ready for review October 12, 2025 04:51
…odule function.

# Conflicts:
#	cryptol-saw-core/src/CryptolSAWCore/CryptolEnv.hs
- See comments in mkCryptolModule that justify the refactor (i.e., that modEnv' == modEnv'')
- s/importModule/importCryptolModule/g;
… and updating code to reflect this

- CryptolModule (as known at the command line) is generalized to ExtCryptolModule,
  - this allows for a module to be represented as EITHER
    - CryptolModule (2 namespaces), or
    - the name of a loaded module

- This allows for simpler and newly shared code
- This now should support submodules when we `cryptol_load`.
@mtullsen mtullsen force-pushed the tullsen/support-submodules-in-cryptol_load branch from 61c374d to 48dc42a Compare October 19, 2025 04:46
@mtullsen
Copy link
Contributor Author

Everything should be addressed @RyanGlScott @sauclovian-g.

@mtullsen mtullsen merged commit 0c192bd into master Oct 19, 2025
37 checks passed
@mtullsen mtullsen deleted the tullsen/support-submodules-in-cryptol_load branch October 19, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants